package org.yn.subject.domain.convert;

import org.yn.subject.domain.dto.SubjectAnswerDTO;
import org.yn.subject.domain.entity.SubjectAnswerBO;
import org.yn.subject.domain.entity.SubjectInfoBO;
import org.yn.subject.domain.request.SaveSubjectInfoRequest;
import org.yn.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SubjectInfoConverter {

  SubjectInfo toSubjectInfo(SaveSubjectInfoRequest request);

  SubjectInfoBO toSubjectInfoBO(SaveSubjectInfoRequest request);

  List<SubjectAnswerBO> toSubjectAnswerBO(List<SubjectAnswerDTO> optionList);

  SubjectInfo boToSubjectInfo(SubjectInfoBO subjectInfoBO);
}
